package com.camunda7.workflow.services;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Service;


@Service("service1")
public class Service1 implements JavaDelegate {
    /**
     * 对应camunda7 service任务 delegate expression 实现方式
     * @param execution
     * @throws Exception
     */
    @Override
    public void execute(DelegateExecution execution) throws Exception {
        execution.setVariable("foo","bar");
        System.out.println("service1 被调用");
    }
}


